<?php

namespace App\Repositories;

use App\Models\GoodsEvaluate;
use InfyOm\Generator\Common\BaseRepository;

/**
 * Class GoodsEvaluateRepository
 * @package App\Repositories
 * @version October 30, 2017, 6:09 am CST
 *
 * @method GoodsEvaluate findWithoutFail($id, $columns = ['*'])
 * @method GoodsEvaluate find($id, $columns = ['*'])
 * @method GoodsEvaluate first($columns = ['*'])
*/
class GoodsEvaluateRepository extends BaseRepository
{
    /**
     * @var array
     */
    protected $fieldSearchable = [
        'order_id',
        'goods_id',
        'attribute_id',
        'level',
        'content',
        'user_id',
        'reply',
        '>pictures',
        'is_anonym'
    ];

    /**
     * Configure the Model
     **/
    public function model()
    {
        return GoodsEvaluate::class;
    }
}
